﻿using UnityEngine;

namespace Game
{
    [System.Serializable]
    public class SceneObjDataSetting
    {
        /// <summary>
        /// The prefab object.
        /// </summary>
        public GameObject prefabObj;

        /// <summary>
        /// The index of the prefab in setting array.
        /// </summary>
        public int prefabIndex = -1;

        /// <summary>
        /// 生成物体时，是否要增加物体的偏移值
        /// </summary>
        public float objDeltaPosY;

        /// <summary>
        /// 如果拖拽生成的时候，生成的几率
        /// </summary>
        public int rateWhenDrag;

        /// <summary>
        /// 生成物体时，是否要调整物体的大小范围：
        /// </summary>
        public bool changeScale;
        /// <summary>
        /// 生成物体时，最小size：
        /// </summary>
        public float changeScaleMin;
        /// <summary>
        /// 生成物体时，最大size
        /// </summary>
        public float changeScaleMax;

        /// <summary>
        /// 新生成物体的随机转向选择
        /// </summary>
        public RAND_ROTATE_DIRECTION randRotateDirection;
    }
}